Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed color space conversion in HLSL #157

Merged

Conversation

shadielhajj
Copy link
Collaborator

Missing static keyword was leading to const color conversion matrices being optimised away by the hlsl compiler.
Shaders were failing silently and returning black.

@patriciogonzalezvivo
Copy link
Owner

Nice find! So good that you have deeper experience with HLSL

@patriciogonzalezvivo patriciogonzalezvivo merged commit 6e21638 into patriciogonzalezvivo:main Jul 7, 2024
@shadielhajj
Copy link
Collaborator Author

Not the first time I get bitten by this one. Not sure if it's a Unity or HLSL thing, but it's horrible because it just fails silently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants